import imp
import yaml

import os

datapath = os.path.dirname(__file__)
basepath = os.path.dirname(datapath)

# print("pa:%s" % os.path.dirname(__file__))
loginyml = os.path.join(datapath,'login.yml')
print(basepath)

def read_data():

    f = open(loginyml,'r')
    data = f.read()
    d = yaml.load(data)
    return d

    

    

